package cn.lbd.api.designMode.factory.abstractfavtory;

public class Client {
    public static void main(String[] args) {
        System.out.println("========================华为产品========================");
        HuaweiFactory huaweiFactory=new HuaweiFactory();
        IPhoneProduct huaWeiPhone = huaweiFactory.phoneProduct();
        IRouteProduct huaWeiRoute = huaweiFactory.routeProduct();
        huaWeiPhone.open();
        huaWeiPhone.close();
        huaWeiRoute.net();
        System.out.println("========================小米产品========================");
        XiaoMiFactory xiaoMiFactory=new XiaoMiFactory();
        IPhoneProduct XiaoMiPhone = xiaoMiFactory.phoneProduct();
        IRouteProduct XiaoMiRoute = xiaoMiFactory.routeProduct();
        XiaoMiPhone.open();
        XiaoMiPhone.close();
        XiaoMiRoute.net();
    }
}
